package P6.T03;

import java.awt.*;

public class MyLine {
    private int x1,y1,x2,y2;
    public void setStart(int x, int y) {
        x1=x;
        y1=y;
    }

    public void setEnd(int x, int y) {
        x2=x;
        y2=y;
    }

    public void draw(Graphics graphics) {
        graphics.drawLine(x1,y1,x2,y2);
    }
}
